//
//  OutDoorView.m
//  Model
//
//  Created by YDJH on 2017/6/5.
//  Copyright © 2017年 YDJH. All rights reserved.
//



#import "OutDoorView.h"
#import "HZOutDoor.h"

@interface OutDoorView ()

@end

@implementation OutDoorView


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
//        [self initView];
    }
    return self;
}

- (void)setOutdoor:(HZOutDoor *)outdoor {
    _outdoor = outdoor;
    [self initView];
}

- (void)initView {
    
    [self setImage:[UIImage imageNamed:self.outdoor.picture]];
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
